package com.leiyuee.skywalking.web;

import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/echo")
    public String echo(){
        return "echo";
    }
    @GetMapping("/hello")
    public String hello(){
        return "hello";
    }


    public static void main(String[] args) {

        String str = "[K024851,K21212";
       String  unit = StringUtils.strip(str, "[]");

       System.out.println(unit);
    }
}
